// Learn cc.Class:
//  - [Chinese] http://www.cocos.com/docs/creator/scripting/class.html
//  - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/class/index.html
// Learn Attribute:
//  - [Chinese] http://www.cocos.com/docs/creator/scripting/reference/attributes.html
//  - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/reference/attributes/index.html
// Learn life-cycle callbacks:
//  - [Chinese] http://www.cocos.com/docs/creator/scripting/life-cycle-callbacks.html
//  - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/life-cycle-callbacks/index.html

var OnTapEvent = cc.Class({
    extends: cc.Event.EventCustom,

    statics: {
        Name: 'OnTapEvent'
    },

    properties: {
        h: 0,
        v: 0,
    },
    
    init(h, v, dd, wh){
        // bubbles 必须要有的
        this.bubbles = true;
        this.type = OnTapEvent.Name;
        
        this.h = h;
        this.v = v;
    }
});

module.exports = OnTapEvent